package houserules;

import java.io.Serializable;

import logic.moves.GameMove;

public class InitMaxSoldierNum implements Serializable, HouseRuleInterface{

	// =========== Fields ============
	private static final long serialVersionUID = 1L;
	private int num_of_countries;
	private int def_val = 20;

	// ======== Constructors =============
	public InitMaxSoldierNum(int num_of_countries){
		this.num_of_countries = num_of_countries;
	}
	public InitMaxSoldierNum(){
		this.num_of_countries = def_val;
	}
	
	// ========== Functions ==============

	/**
	 *  check if number of countries equal to default value (20) 
	 */
	public boolean isDefault() {
		return num_of_countries == def_val;
	}
	
	/**
	 * change number of countries to default value (20)
	 */
	public int restoreDefault() {
		return num_of_countries = def_val;
	}
	
	/**
	 * return current number of countries 
	 */
	public int getNumCountries(){
		return num_of_countries;
	}
	public boolean isLegal(GameMove gameMove) {
		// TODO Auto-generated method stub
		return true;
	}

}
